package com.beasts.antpage.sh.mapper;

import com.beasts.antpage.sh.entity.APHomePage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author cn_zkn
 * @data 2018/5/28 10:33
 * @ver v0.1
 */
@Component(value = "APMapper")
public interface APMapper {

    @Select("select * from ap_home_page")
    @Results({
            @Result(column="page_id", property="pageId"),
            @Result(column="page_order", property="pageOrder"),
            @Result(column="page_title", property="pageTitle")
    })
    List <APHomePage> getHomePage();


    List <APHomePage> getHomePageInfo();

    List  getPortalBusiData(Map paramMap);

}
